From 7839e0d7d5490229ad1eb5c955e08a7d6a2f7b1c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 11 Nov 2017 12:07:11 -0500 Subject: [PATCH] x11: Fix a crash This was crashing the moment a second window is opened. --- gdk/x11/gdkdevice-xi2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/x11/gdkdevice-xi2.c b/gdk/x11/gdkdevice-xi2.c index 78f2782185..210c72bb10 100644 --- a/gdk/x11/gdkdevice-xi2.c +++ b/gdk/x11/gdkdevice-xi2.c @@ -359,7 +359,7 @@ gdk_x11_device_xi2_query_state (GdkDevice *device, } if (!GDK_X11_DISPLAY (display)->trusted_client || - !XIQueryPointer (GDK_WINDOW_XDISPLAY (window), + !XIQueryPointer (GDK_DISPLAY_XDISPLAY (display), device_xi2->device_id, xwindow, &xroot_window, -- 2.30.2